<?php 
class Test extends BaseController_Controller {	

	public function __construct()
	{
		parent::__construct();			
		$this->load->library('sys/sysconfig');		 
		$this->load->library('sys/sysuser');		
	}

	public function index()
	{	
		$this->output->enable_profiler(TRUE);
		//$cls= new SysConfig();
		//$cfg=$cls->GetListItem('sys');	
		//$c=(SysConfig::GetConfigByKey('errorlocked'));
		//print((SysConfig::GetConfigByKey('errorlocked'))->valueconfig);

		//$c=new SysUser('yanusapu');
		//$c->IncErrorCount();
		
		
		//print(date('Y-m-d H:i:s'));
		//echo json_encode($this->loginuser);
		//print($timezone);

		//print($this->loginuser['uname']);
		$cls=new SysUser($this->loginuser['uname']);
		echo json_encode($cls->changepassword);

		//$date = new DateTime();
		//echo $date->getTimestamp();

		//$timeZones = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, 'ID'); 
		//foreach ( $timeZones as $key => $zoneName ) 
		//{ 
		//	$tz = new DateTimeZone($zoneName); 
		//	$loc = $tz->getLocation(); 
		//	print($zoneName . " = " . $loc['comments'] . "<br>"); 
		//} 

		
	}

  }
